home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7738 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.citenet.net!usenet
  2. From: Oliver Lavery <oliver@citenet.net>
  3. Newsgroups: comp.lang.c
  4. Subject: Zombies & Daemons
  5. Date: Wed, 28 Feb 1996 10:55:11 +0000
  6. Organization: CiteNet Telecom - Commercial Internet Service
  7. Message-ID: <3134348F.7526@citenet.net>
  8. NNTP-Posting-Host: g34-210.citenet.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (Win95; I)
  13.  
  14. I've just finished writting a daemon to handle generating web 
  15. pages from an Oracle database. When it executes, the parent forks a 
  16. number of children, all of which are bound to a network port. Each child 
  17. services requests in order etc. etc. works more or less like an apache 
  18. httpd...
  19.  
  20.     The problem is this: when one of the children dies for whatever 
  21. reason (usually a f*cked OCI call which makes the daemons session 
  22. unstable), the parent's sigcld handler forks a new child to keep a 
  23. consistent number of processes running. For some reason, however, the 
  24. dead child process lingers around as a zombie process ... how do I avoid 
  25. this?
  26.  
  27.     Also, does SunOS support copy on write memory pages? And do 
  28. zombie processes still use system resources?
  29.  
  30. Later,
  31. Oliver Lavery
  32. -- 
  33. `'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`
  34.   oliver@citenet.net            http://www.quebec.net/~oliver/
  35.  
  36.  The dogmas of the quiet past are inadequate in the stormy present.
  37.                     - A. Lincoln
  38. `'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`'~'`
  39.  
  40. -----BEGIN PGP PUBLIC KEY BLOCK-----
  41. Version: 2.1
  42.  
  43. mQCNAjDkcmQAAAEEAOkLryuvgyTx/h4lkrtvx5jQSlMQLeCWAJcfVS5DFkR1bna6
  44. ehPPcIUl4+fF81zR9bJajdrPhGM5wUmSwLxRiWuzapXv0rgB0DlcjeGCCqaOgX5u
  45. BJfSmKMDGJeRZ20fXJG4zLzVTjoUpQRh1rsUYt8Y4kkhzYA6iJz10yjPhg8BAAUR
  46. tA1PbGl2ZXIgTGF2ZXJ5
  47. =XAGz
  48. -----END PGP PUBLIC KEY BLOCK-----
  49.